import domain.Client;
import domain.DomainController;
import java.net.ConnectException;
import javax.swing.JOptionPane;
import javax.swing.UIManager;

import view.LoginFrame;

public class StartUp {

    public static void main(String args[]) {
        try { 
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch(Exception e){
            e.printStackTrace();
        }
        try {
            new LoginFrame(new DomainController(new Client())).setVisible(true);
        } catch(ConnectException ce) {
            JOptionPane.showMessageDialog(null, ce.getMessage());
        }
    }
	
}
